package com.wzh.apiclientsdk.utils;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

/**
 * @Author wzh
 * @create 2023/4/6 21:06
 * @Description:
 */

public class SignUtils {
    public static String genSign(String body, String secretKey) {
        Digester md5 = new Digester(DigestAlgorithm.SHA256);
        String content=body+'.'+secretKey;

      // 5393554e94bf0eb6436f240a4fd71282
        String digestHex = md5.digestHex(content);
        return digestHex;
    }
}
